//
//  MSTileMap.h
//  MagicSword
//
//  Created by Netease on 15/11/20.
//  Copyright © 2015年 Jonear. All rights reserved.
//

#import "JSTileMap.h"
#import "MSEnemyInfo.h"

@interface MSTileMap : JSTileMap

@property (nonatomic,strong) TMXLayer *wall;
@property (nonatomic,strong) TMXLayer *road;
@property (nonatomic,strong) TMXLayer *enemy;
@property (nonatomic,strong) TMXLayer *item;
@property (nonatomic,strong) TMXLayer *door;
@property (nonatomic,strong) TMXLayer *other;
@property (nonatomic,strong) TMXLayer *npc;
@property (nonatomic,strong) TMXLayer *hero;

@property (nonatomic, strong) NSMutableArray *enemyArray;     //MSEnemyInfo类型
@property (nonatomic, strong) NSMutableArray *heroPointArray; //value-CGPoint类型

-(id)initWithIndex:(NSInteger)index dot:(NSInteger)dot;
// 开门
-(void)openDoorWithType:(int)type;
@end
